﻿@{
    ViewBag.Title = CloudStorageLight.Core.Web.ViewMessages.MsgRegisterClientToken;
    Layout = "~/Views/Shared/_Layout.cshtml";
    var query = new RouteValueDictionary();
    foreach (string key in Request.QueryString.Keys)
    {
        if (key == null)
        {
            continue;
        }
        query[key] = Request.QueryString[key].ToString();
    }
}
<h2>@ViewBag.Title.</h2>
<div class="row">
    <div class="col-md-10">
    </div>
</div>
@section scripts
{
    <script type="text/javascript">
        @Html.Partial("_Message")

        $(function () {
            CloudStorageLight.StorageController.blockUI(null);

            if (typeof Storage !== "undefined") {
                localStorage.setItem("clientToken", "@(ViewBag.ClientToken)");
            }

            window.location.href = "@(ViewBag.ReturnUrl)";
        });
    </script>

}
